﻿using H.Daos;
using H.Daos.Attributes;

namespace H.Config.Configs.Entities
{
    [Table("sys_common_config")]
    public class CommonConfigEntity : AbstractEntity
    {
        /// <summary>
        /// 类型名称,用于区分不同的位置的配置
        /// </summary>
        [Column("type", NotNull = true)]
        public string TypeName { get; set; }

        /// <summary>
        /// 键
        /// </summary>
        [Column("key", NotNull = true)]
        public string Key { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        [Column("value")]
        public string Value { get; set; }

        ///<inheritdoc/>
        public override object Clone()
        {
            return EntityCloner<CommonConfigEntity>.Clone(this);
        }
    }
}
